﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Weixin.MP.UI
{
    [Serializable]
    public class OperationResult<T>
    {
        /// <summary>
        /// 返回结果状态
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 返回消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 返回值
        /// </summary>
        public T Value { get; set; }

        public override string ToString()
        {
            return string.Format("state:{0} message:{1} value:{2}", State, Message, Value);
        }
    }
}
